#ifndef LINE_HPP
#define LINE_HPP

#include <math.h>

#include <iostream>

#include "point.hpp"

class Line {
   private:
    Point p1, p2;

   public:
    Line(Point &pa, Point &pb) {
        p1 = pa;
        p2 = pb;
    }
    Line(const Line &l) {
        p1 = l.p1;
        p2 = l.p2;
    }
    double getLen() {
        return sqrt((p1.getX() - p2.getX()) * (p1.getX() - p2.getX()) + (p1.getY() - p2.getY()) * (p1.getY() - p2.getY()));
    }
};

#endif